﻿$(function () {
	$('img.expand-collapse').attr("alt", "Uitklappen").attr("title", "Uitklappen").attr("src", "/images/expand.png").click(function () {
		var target = $('#' + $(this).attr('targetid'));
		if ($(target).css('display') == 'none') {
			$(target).fadeIn();
			$(this).attr("src", "/images/collapse.png").attr("alt", "Inklappen").attr("title", "Inklappen");
		}
		else {
			$(target).fadeOut();
			$(this).attr("src", "/images/expand.png").attr("alt", "Uitklappen").attr("title", "Uitklappen");
		}
	});
});